<?php
namespace app\console\controller;


use think\db\exception\DataNotFoundException;
use think\db\exception\DbException;
use think\db\exception\ModelNotFoundException;
use think\facade\Request;
use think\facade\Route;
use think\facade\View;
use think\facade\Db;
use think\facade\Cache;
use think\facade\Cookie;
use \QL\QueryList as QueryData;
class Querylist extends Base
{

    

    public function initialize()
    {
        parent::initialize();
        $this->model = "\app\model\Querylist";

    }


    public function select()
    {

    }

    //https://querylist.cc/docs/guide/v4/scraper-list
//    public function query()
//    {
//        $url = 'http://www.hljlm22c.cn/web/Index/index.html?l1=89&t=safe';
//        // 元数据采集规则
//        $rules = [
//            // 采集文章标题
//            'title' => ['h1', 'text'],
//            // 采集链接
//            'img' => ['.img img', 'src'],
////            // 采集缩略图
////            'img' => ['.list_thumbnail>img', 'src'],
////            // 采集文档简介
////            'desc' => ['.memo', 'text']
//        ];
//        // 切片选择器
//        $range = '.aqsc1_con .a3';
//        $rt = QueryData::get($url)->rules($rules)->range($range)->query()->getData();
//        halt($rt->all());
//
//    }




}